@import url(https://fonts.googleapis.com/css?family=Varela+Round);

.slides {
    padding: 0;
    width: 100%;
    margin: auto;
    position: relative;
}

.slides * {
    user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.slides input { display: none; }

.slide-container { display: block; }

.slide {
    top: 0;
    opacity: 0;
    display: block;
    position: absolute;

    transform: scale(0);

    transition: all .7s ease-in-out;
}

.nav label {
  margin-top: 20px;
    width: 50px;
    height: 50px;
    display: none;
    position: absolute;

    z-index: 9;
    cursor: pointer;

    transition: opacity .2s;

    color: #3E66DF;
    font-size: 30pt;
    text-align: center;
    font-family: "Varela Round", sans-serif;
    border: black 1px solid;
    border-radius: 40px;
    text-shadow: 0px 0px 15px rgb(119, 119, 119);
}

.slide:hover + .nav label { opacity: 0.5; }

.nav .next { left: 15%; }

input:checked + .slide-container  .slide {
    opacity: 1;

    transform: scale(1);

    transition: opacity 1s ease-in-out;
}

input:checked + .slide-container .nav label { display: block; }

body {
  background-color: #EAEAEA;
  margin: 0;
  min-height: 100vh;
}
.container{
  display: grid;
  place-items: center; 
  height: 100%;
  height: 80vh; 
}
.card {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 70%; 
}
.card .behind {
  position: absolute;
  z-index: -1;
  width: 30%;
  height: 65%;
  left: 14%;
  top: 10%;
  border: 10px solid #3E66DF;
}
.card .above {
  display: flex;
  width: 70%;
  margin-left: 80px;
  background-color: #FFFFFF;
  position: relative;
  height: 100%;
  justify-content: center;
  align-items: center;
}
.card .above .side-border {
  padding: 10px;
  border-right: 10px solid #3E66DF;
  border-top: 10px solid #3E66DF;
  border-bottom: 10px solid #3E66DF;
  height: 80%;
  width: 90%;
}
.card .above .left {
  padding: 50px;
  padding-right: 10px;
  width: 60%;
}
.card .above .left p {
  font-weight: 600;
  font-size: 28px;
  width: 80%;
}
.card .above .left .name {
  display: flex;
  align-items: center;
}
.card .above .left .name .box {
  width: 25px;
  height: 25px;
  background-color: #3E66DF;
  margin-right: 10px;
}
.card .above .left .name h2 {
  margin: 0;
  font-size: 20px;
}
.card .above .left .name h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 100;
}
.card .above .right {
  width: 30%;
  padding: 20px;
  padding-right: 10px;
  position: relative;
  display: flex;
}
.card .above .right img {
  width: 100%;
  height: 100%;
}

/* Responsive Fix for Smaller Screens */
@media(max-width:900px){
  .card .above .left p{
      font-size: 25px;
      width: 100%;
      padding: 0;
  }
  .card .above .left {
      padding: 0px;
  }
  .card .above .right{
      padding: 0px;
  }
  .card .behind{
    top: 10%;
  }
}
@media (max-width: 748px) {
  .nav label{
    bottom: 0;
  }
  .nav .next{
    left: 30%;
  }
  .card .behind{
    top: 20px;
  }
  .card {
      width: 90%;
      display: grid;
      place-items: center;
  }
  .card .behind {
      position: absolute;
      z-index: -1;
      width: 50%;
      height: 65%;
      border: 10px solid #3E66DF;
  }
  .above {
      display: flex;
      flex-direction: column;
      height: auto;
      padding: 20px;
  }
  .card .above .left {
      padding: 10px;
      width: 90%;
  }

  .card .above .left p {
      font-size: 20px;
      width: 100%;
  }
  .card .above .left .name h2 {
      font-size: 20px;
  }
  .card .above .left .name h5 {
      font-size: 13px;
  }
  .card .above .right{
      width: 80%;
  }
}



@media(max-width:500px){
  .card .behind{
    top: 40px;
  }
  .card .above .left {
      padding: 10px;
      width: 100%;
  }
  .card .above .left p {
      font-size: 18px;
      width: 100%;
  }
  .card .above .left .name h2 {
      font-size: 12px;
  }
  .card .above .left .name h5 {
      font-size: 10px;
  }
  .card .above .right{
      width: 80%;
  }
  .card .above{
    width: 80%;
  }
  .nav label{
    bottom: 0;
    width: 20px;
    height: 20px;
    font-size: 15px;
  }
  .nav .next{
    left: 20%;
  }
}
